<?php

namespace Entities;

use Doctrine\ORM\Mapping as ORM;

/**
 * Entities\Procedimento
 *
 * @ORM\Table(name="procedimento")
 * @ORM\Entity
 */
class Procedimento
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $descricao
     *
     * @ORM\Column(name="descricao", type="string", length=100, nullable=false)
     */
    private $descricao;

    /**
     * @var Entities\Fluxo
     *
     * @ORM\OneToOne(targetEntity="Entities\Fluxo")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="fluxo", referencedColumnName="id", unique=true)
     * })
     */
    private $fluxo;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set descricao
     *
     * @param string $descricao
     * @return Procedimento
     */
    public function setDescricao($descricao)
    {
        $this->descricao = $descricao;
        return $this;
    }

    /**
     * Get descricao
     *
     * @return string 
     */
    public function getDescricao()
    {
        return $this->descricao;
    }

    /**
     * Set fluxo
     *
     * @param Entities\Fluxo $fluxo
     * @return Procedimento
     */
    public function setFluxo(\Entities\Fluxo $fluxo = null)
    {
        $this->fluxo = $fluxo;
        return $this;
    }

    /**
     * Get fluxo
     *
     * @return Entities\Fluxo 
     */
    public function getFluxo()
    {
        return $this->fluxo;
    }
}